import { axios } from '@/utils/request'
import urls from './url'

export function addMesBaPhh (params) {
  return axios({
    url: urls.mesBaPhh.url,
    method: 'post',
    params
  })
}
// 分页获取工厂层级列表
export function getMesBaPhhList (params) {
  return axios({
    url: urls.mesBaPhhList.url,
    method: 'get',
    params
  })
}
// 分页获取工厂层级列表
export function delMesBaPhhList (id) {
  return axios({
    url: urls.mesBaPhh.url + id,
    method: 'delete'
  })
}
